package com.smart.manager.product.entities.models;

import com.smart.common.entities.core.BaseLongModel;
import com.smart.manager.product.entities.enums.ProfileStatus;
import com.smart.manager.product.entities.views.PropsProfileView;
import io.ebean.annotation.DbArray;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.List;


/**
 * 游戏管理  套餐档案
 * @author leo
 * @date 2023/09/08
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Accessors(chain = true)
@Table(name = "product_props_combo")
public class PropsCombo extends BaseLongModel {

    @ApiModelProperty("套餐代码")
    private String code;

    @ApiModelProperty("套餐名称")
    private String name;

    @ApiModelProperty("售价金币")
    private Integer price;


    @ApiModelProperty("折扣")
    private BigDecimal discountPrice;

    @ApiModelProperty("最终折扣")
    private transient BigDecimal totalPrice;

    @ApiModelProperty("食物档案code")
    @DbArray
    private List<String> meat;

    @ApiModelProperty("食物档案名称")
    private transient List<String> meatName;

    @ApiModelProperty("食物档案详情")
    private transient List<PropsProfileView> meats;

    @ApiModelProperty("档案图标")
    @DbArray
    private List<String> icons;

    @ApiModelProperty("最低食用等级")
    private Integer minLevel;

    @ApiModelProperty("最高食用等级")
    private Integer maxLevel;

    @ApiModelProperty("套餐库存")
    private Integer stock;



    @ApiModelProperty("是否是套餐包")
    private Boolean isPack;

    @ApiModelProperty("套餐状态")
    private ProfileStatus status;

    @ApiModelProperty("显示排序")
    private Integer sort;

    @ApiModelProperty("有机属性")
    private Boolean isOrganic;




}
